namespace VendorExpenses.Context.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using VendorExpenses.Model;

    public sealed class Configuration : DbMigrationsConfiguration<VendorExpensesContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
            AutomaticMigrationDataLossAllowed = true;
        }

        protected override void Seed(VendorExpensesContext context)
        {
            //context.Vendors.AddOrUpdate(
            //                s => s.VendorName, new Vendor()
            //                {
            //                    VendorName = "Pesho" + 1
            //                });

            //context.SaveChanges();
        }
    }
}
